home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / VBCTRL.ZIP / VBPIC3D.TXT < prev    next >
Text File  |  1993-01-01  |  2KB  |  44 lines

  1.  
  2.  
  3.        3-D Picture Button for Visual Basic by Mark Gamber  March, 1992
  4.  
  5.    Similar to the picture button VBPICBTN.VBX, this control provides a button
  6. to Visual Basic with 3-D shading drawn automatically depending on if the button
  7. is pressed or not. Bitmaps and icons may be display in the button and a
  8. separate picture may be defined for the "up" and "down" states. To use this
  9. control, copy VBPIC3D.VBX to your Visual Basic directory and select the file
  10. from the listbox displayed by selecting "Add file..." from the "File" menu.
  11.  
  12.    Captions may be set including the "hotkey" which has a line drawn under the
  13. letter selected. The caption appears below the 3-D shaded section of the button
  14. and may not be moved. The shaded portion of the button adjusts it size when the
  15. caption font size is changed.
  16.  
  17.    Pictures in the form of bitmaps or icons may be set using the "PictUp" and
  18. "PictDown" methods. To achive a good effect, you should move the "down" picture
  19. down and to the right of the "up" picture when drawing the bitmaps, the amount
  20. of movement depending on the border width of the button. If an "Up" picture is
  21. defined but no "down" picture, the "up" picture is offset by the border width
  22. and displayed. In this manner, only one bitmap is used and the 3-D effect still
  23. works.
  24.  
  25.    "BorderWidth" selects the number of lines that make up 3-D shading. Larger
  26. numbers display a thicker border, lower numbers display a thinner border. The
  27. black button outline may not be altered.
  28.  
  29.    "Stretch" determines how to display the bitmap. If TRUE, the bitmap is sized
  30. to fit the 3-D section of the button. Otherwise, the bitmap does not change
  31. sizes. FALSE displays the picture as drawn with no distortion but it may cause
  32. the bitmap to overwrite the border and caption if larger than the 3-D portion
  33. of the control.
  34.  
  35.  
  36.    This software is free for any and all to use given two conditions:
  37.  
  38. 1. Credit is credit where credit is due.
  39. 2. I'm not liable. Period.
  40.  
  41. Questions, bugs and suggestions may be sent E-Mail to PCA MarkG on America
  42.    Online. Internet mail address pcamarkg@aol.com is now available, as well.
  43.  
  44.